From 95d253cdbab7ec467e7fa1f7226b3471d177767e Mon Sep 17 00:00:00 2001 From: "Carol (Nichols || Goulding)" Date: Sun, 15 May 2016 10:27:40 -0400 Subject: [PATCH] Add an ascii directory tree to the project layout section --- src/doc/guide.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/doc/guide.md b/src/doc/guide.md index ffd96005a..d619fe11b 100644 --- a/src/doc/guide.md +++ b/src/doc/guide.md @@ -211,6 +211,23 @@ Did our date match? true Cargo uses conventions for file placement to make it easy to dive into a new Cargo project: +```shell +. +├── Cargo.lock +├── Cargo.toml +├── benches +│   └── large-input.rs +├── examples +│   └── simple.rs +├── src +│   ├── bin +│   │   └── another_executable.rs +│   ├── lib.rs +│   └── main.rs +└── tests + └── some-integration-tests.rs +``` + * `Cargo.toml` and `Cargo.lock` are stored in the root of your project. * Source code goes in the `src` directory. * The default library file is `src/lib.rs`. -- 2.30.2